package com.szmg.auth.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.szmg.auth.dao.CompanyDao;
import com.szmg.auth.model.Company;


@Service("companyService")
public class CompanyService {
	
	@Resource(name="companyDao")
	private CompanyDao companyDao;
	


	public List<Company> listCompany(int start,int size,Company Company){
		return companyDao.findCompany(start, size,Company);
	}
	 
	public void deleteCompanyById(int id){
		companyDao.deleteCompanyById(id);
	}
	

	public void addCompany(Company company){
		companyDao.addCompany(company);
	}
	

	public Company findCompanyById(int id){
		return companyDao.findCompanyById(id);
	}

	
}
